/**
 * Copyright (C) 2018-2030
 * All rights reserved, Designed By www.samfeng.com
 */

export const StockQuantOption = {
  dialogType: 'dialog',
  dialogDrag:true,
  dialogMenuPosition: 'right',
  border: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuType: 'text',
  searchShow: true,
  excelBtn: false,
  delBtn:false,
  addBtn: false,
  editBtn: false,
  searchMenuSpan: 6,
  column: [{
              label: "产品",
              prop: "productId",
              display: false,
              hide: true,
              disabled: true
          },{
              label: "产品名称",
              prop: "productName",
              display: true,
              disabled: true,
              search:true,
          },{
              label: "数量",
              prop: "quantity",
              display: true,
              disabled: true
          }
        ]
}

export const dialogStockQuantOption = {
    menu: false,
    addBtn: false,
    searchShow:false,
    column: [{
                label: "位置id",
                prop: "locationId",
                display:false,
                hide: true
            },{
                label: "位置",
                prop: "locationName",
                append: "选择",
                appendClick:()=>{
                  this.openStocLocation = true                  
                },                        
                rules: [{
                    required: true,
                    message: '位置不能为空',
                    trigger: 'blur'
                }],
                disabled:true,
            },{
                label: "产品名称id",
                prop: "productId",
                display: false,
                hide: true
            },{
                label: "产品名称",
                prop: "productName",
                display: true,
                disabled: true,
            },{
                label: "可用数量",
                prop: "availableQuantity",
                display: true,
                disabled: true,
            },{
                label: "在手数量",
                prop: "quantity",
                display: true,
                disabled: true,
            },{
                label: "计数的数量",
                prop: "inventoryQuantity",
                display: true,
                hide:true
            },{
                label: "差异",
                prop: "inventoryDiffQuantity",
                disabled: true,
                hide: true
            },{
                label: "安排日期",
                prop: "inventoryDate",
                display: true,
                type: "datetime",
                format: "yyyy-MM-dd HH:mm:ss",
                valueFormat: "yyyy-MM-dd HH:mm:ss",
                hide:true
            }
  ]
}
  
